package com.simple.piger.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * CMS【用户信息模块】意见反馈表
 * @Author  donghj
 * @Date    2017/12/19 17:09
 */
@Data
@TableName("user_suggestion")
public class CmsUserSuggestion extends Model<CmsUserSuggestion> {
    /**
     * 主键
     */
    @TableId(type = IdType.INPUT)
    private String id;
    /**
     * 用户ID
     */
    @TableField("user_id")
    private String userId;
    /**
     * 城市代码
     */
    @TableField("city_code")
    private String cityCode;

    @TableField("biz_type")
    private String bizType;
    /**
     * 城市名称
     */
    private String city;
    /**
     * 意见
     */
    private String opinion;
    /**
     * 创建时间
     */
    @TableField("date_created")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date dateCreated;
    /**
     * 手机号
     */
    @TableField(exist = false)
    private String mobile;
    /**
     * 城市名称
     */
    @TableField(value = "city_name", exist = false)
    private String cityName;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}